@import '../../../commonStyle/var';
@import '../../../commonStyle/tool';
@import './var';

.page-pb{
  padding-bottom: 85px;
}

.volunteer-apply-page{
  width: 840px;
  margin-left: auto;
  margin-right: auto;
  background-color: #fff;
  padding-top: 0;
  margin-bottom: 95px;
  @field_name_width: 105px;

  .title-bar{
    font-weight: bold;
    font-size: 18px;
    color: @black;
    padding-bottom: 20px;
    border-bottom: 1px solid @border;
    margin-bottom: 15px;
    text-align: center;
  }
  .title-bar-wrapper-tips{
    font-size: 14px;
    color: @gray;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  .qs-form{
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    padding-bottom: 110px;
    .from-group-wrapper{
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
    }
    .form-group-inline,.form-group{
      width: 100%;
      margin-bottom: 20px;
      .field-name{
        width: @field_name_width;
      }
    }
    .form-group-half{
      width: 375px;
    }
    .upload-img{
      margin-top: -10px;
      margin-bottom: 10px;
    }
    .join-time{
      margin-bottom: 15px;
      padding-top: 25px;
      border-top: 1px solid @border;
      .field-name{
        margin-top: 0;
      }
      .form-field{
        font-size: 14px;
        display: flex;
        flex-wrap: wrap;
        label{
          cursor: pointer;
          display: inline-flex;
          align-items: center;
          margin-top: 0;
          margin-bottom: 15px;
          width: 98px;
          margin-right: 0;
          input[type=checkbox]{
            width: 15px;
            height: 15px;
          }
          .text{
            margin-left: 5px;
          }
        }
      }
    }
    .btn-submit{
      margin-left: @field_name_width + 10px;
      .btn.btn-m;
      width: 130px;
    }
  }
}

.info-list{
  >li{
    padding: 20px 0;
    border-bottom: 1px solid @border;
    &:hover{
      .title{
        color: @red;
      }
    }
    .title{
      font-size: 18px;
      color: @black;
      line-height: 1.5;
      .text-overflow;
      margin-bottom: 10px;
    }
    .bottom-wrap{
      font-size: 14px;
      color: @gray;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .left-wrap{
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        width: 525px;
      }
      .wish-summary{
        display: flex;
        align-items: center;
        width: 310px;
        .wish-summary-item{
          width: 155px;
          flex-shrink: 0;
        }
      }
      .item-desc{
        width: 250px;
        flex-shrink: 0;
      }
      .item-time{
        flex-shrink: 0;
      }
      .item-donate-amount{
        flex-shrink: 0;
      }
      .item-wish-status{
        flex-shrink: 0;
        color: @blue;
        flex-grow: 1;
        text-align: right;
      }
      .btn-wrap{
        flex-grow: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        a{
          display: inline-block;
          color: @black;
          padding-left: 10px;
          padding-right: 10px;
          &:hover{
            color: @red;
          }
          &:first-child{
            padding-left: 0;
          }
          &:last-child{
            padding-right: 0;
          }
          & + a{
            border-left: 1px solid @border;
          }
        }
      }
    }
  }
}

.user-profile-page{
  .top-menu{
    margin-bottom: 40px;
  }
}

#comment-bottom-popup{
  .popup-footer{
    display: flex;
    justify-content: flex-end;
   margin: 0 auto;
    a{
      & + a{
        margin-left: 20px;
      }
    }
  }
}


@media screen and (min-width: 1480px) {
  .index-swiper-wrapper{
    width: 1440px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    position: relative;
    &.processing{
      .radius-deco{
        transform: scale(0);
      }
    }
    .radius-deco{
      position: absolute;
      width: 25px;
      height: 25px;
      background-color: #4ecc33;
      z-index: 998;
      transition: transform .3s;
      transform: scale(1);
      &.left{
        left: 0;
      }
      &.right{
        right: 0;
      }
      &.top{
        top: 50px;
      }
      &.bottom{
        bottom: 80px;
      }
      &.left-top{
        .bg(index-swiper-deco-left-top,png,center, 25px 25px);
        transform-origin: left top;
      }
      &.right-top{
        .bg(index-swiper-deco-right-top,png,center, 25px 25px);
        transform-origin: right top;
      }
      &.left-bottom{
        .bg(index-swiper-deco-left-bottom,png,center, 25px 25px);
        transform-origin: left bottom;
      }
      &.right-bottom{
        .bg(index-swiper-deco-right-bottom,png,center, 25px 25px);
        transform-origin: right bottom;
      }
    }
  }
}
@media screen and (max-width: 1480px) {
  .index-swiper-wrapper{
    .container;
    overflow: hidden;
    position: relative;
  }
  .swiper-area{
    .container;
  }
}

.page-index{
  margin-top: 30px;
  .swiper-area{
    position: relative;
    .btn-swiper-button-prev,.btn-swiper-button-next{
      position: absolute;
      top: 50%;
      margin-top: -45px;
      z-index: 999;
      cursor: pointer;
      border-radius: 25px;
    }
    .btn-swiper-button-prev{
      left: 120px;
    }
    .btn-swiper-button-next{
      right: 120px;
      transform: rotateY(180deg);
    }
  }
  .index-swiper{
    overflow: unset;
    position: relative;
    width: 1080px;
    margin: 0 auto 30px;
    .swiper-slide{
      &.swiper-slide-active{
        a{
          display: block;
          height: 100%;
          max-width: 1080px;
          overflow: hidden;
          border-radius: 4px;
          box-shadow: 0 2px 20px 2px rgba(100, 131, 187, 0.35);
        }
      }
      &.swiper-slide-prev,&.swiper-slide-next{
      }
      &.swiper-slide-prev{
      }
      &.swiper-slide-next{
      }
    }
  }

  .summary-info{
    background-color: #fafafa;
    border-top: 1px solid @border;
    border-bottom: 1px solid @border;
    .container{
      height: 90px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .site-summary-list{
      display: flex;
      align-items: center;
      >li{
        display: flex;
        align-items: baseline;
        padding: 0 45px;
        flex-shrink: 0;
        &:first-child{
          padding-left: 0;
        }
        & + li{
          border-left: 1px solid @border;
        }
        .site-summary-title{
          font-size: 16px;
          color: @black;
        }
        .site-summary-num{
          font-size: 26px;
          color: @red;
        }
        .site-summary-unit{
          font-size: 14px;
          color: @red;
        }
      }
    }
  }
  .block-panel{
    padding-top: 40px;
  }
}

.wish-list{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-left: -20px;
  margin-bottom: -30px;
  >li{
    height: 250px;
    margin-left: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    transition: all .3s;
    &:hover{
      box-shadow: 0 2px 20px 2px rgba(100, 131, 187, 0.35);
      a{
        .content{
          .top{
            .title{
              color: @red;
            }
          }
        }
      }
    }
    a{
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      .img{
        border: 1px solid rgb(229, 229, 229);
        border-bottom: 0;
        position: relative;
        .img-wrap(255px, 165px);
        border-radius: 4px 4px 0 0;
        .tag{
          position: absolute;
          left: 0;
          top: 0;
        }
      }
      .content{
        height: 86px;
        width: 100%;
        padding: 15px;
        border: 1px solid @border;
        border-top: 0;
        border-radius: 0 0 4px 4px;
        .top{
          .title{
            margin-bottom: 5px;
            font-size: 18px;
            span{
              .text-overflow;
              width: 223px;
              vertical-align: middle;
            }
          }
          .area{
          }
        }
        .bottom{
          font-size: 14px;
        }
      }
    }
  }
}

.partner-org-list{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-left: -20px;
  margin-bottom: -30px;
  >li{
    @width: 200px;
    @height: 85px;
    margin-bottom: 30px;
    border-radius: 4px;
    border: 1px solid @border;
    margin-left: 20px;
    .img-wrap(@width, @height);
    a{
      .img-wrap(@width, @height);
      .flex-center;
      //无链接
      cursor: default;
    }
  }
}


.page-wish-index{
  padding-top: 30px;
  .top-menu{
    margin-bottom: 20px;
  }
  .area-list{
    margin-bottom: 15px;
  }
}

.qs-search-form{
  margin-bottom: 25px;
  > .input-default {
    margin-left: 10px;
    margin-bottom: 0;
    position: relative;
    > input {
      width: 320px;
      height: 36px;
      border: 1px solid @border;
      padding-right: 30px;
    }
    > .search-icon {
      position: absolute;
      right: 0;
      top: 0;
      background-image: unset;
      padding: 0 6px;
      border: none;
      outline: none;
      background: none;
      cursor: pointer;
      height: 36px;
    }
  }
  .select-default {
    border: 1px solid @border;
    padding: 0 10px;
    margin-bottom: 0;
  }
}

.page-wish-detail{
  .detail-summary{
    .cover{
      .tag{
        position: absolute;
        left: 0;
        top: 0;
      }
    }
    .content{
      .meta{
        padding-bottom: 15px;
        border-bottom: 1px solid @border;
        .btn-wish-share{
          padding-left: 15px;
          padding-right: 15px;
        }
      }
      .raise-list{
        padding-top: 20px;
        padding-bottom: 15px;
      }
    }
  }
  .content-wrapper{
    .main-content-wrapper{
      .top-menu{
        .tab-menu{
        }
      }
      .content-list{
        .wish-detail-list{
          .title-desc-item{
            margin-bottom: 40px;
          }
        }
        .wish-detail{
          position: relative;
          .audit-img{
            position: absolute;
            right: 0;
            top: -10px;
          }
        }
      }
    }
    aside{

    }
  }
}

.page-fund-detail {
  .detail-summary{
    .content{
      .meta{
        padding-bottom: 15px;
        border-bottom: 1px solid @border;
      }
      .summary-list{
        padding-top: 22px;
        >li{
          .summary-list__desc{
            margin-bottom: 10px;
          }
        }
      }
      .bottom{
        height: 113px;
        margin-top: 22px;
        padding-top: 15px;
        .bottom-left{

        }
        .btn-group{
          width: 135px;
          height: 35px;
        }
      }
    }
  }
  .content-wrapper{
    .main-content-wrapper{
      .msg-list{
        >li{
          &:first-child{
            padding-top: 0;
          }
        }
      }
    }
  }
}


.page-login-tips{
  padding: 100px 0;
  main{
    .bg(bg-donate-cert,jpg);
    width: 520px;
    margin: auto;
    height: 580px;
    flex-grow: 0;
    padding-top: 45px;
    padding-bottom: 80px;
    box-shadow: 0 8px 18px 0 rgba(0, 0, 0, 0.15);
    .logo-img{
      text-align: center;
      margin-bottom: 35px;
      img{
        height: 60px;
      }
    }
    .content{
      box-shadow: 0 8px 36px 0 rgba(21, 1, 1, 0.2);
      width: 330px;
      height: 355px;
      padding: 30px 60px 31px;
      margin-left: auto;
      margin-right: auto;
      background-color: #fff;
      border-radius: 4px;
      .flex-center;
      flex-direction: column;
      text-align: center;
      font-size: 14px;
      line-height: 1.5;
      .qr_code_img{
        margin-bottom: 60px;
        width: 190px;
        height: 190px;
        img{
          height: 100px;
        }
      }
    }
  }
}

.page-wish-share{
  padding-top: @top_space;
  padding-bottom: @bottom_space;
  .wish-share-wrapper{
    width: 720px;
    margin: auto;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    margin-bottom: 55px;
    overflow: hidden;
    box-shadow: 0 8px 36px 0 rgba(21, 1, 1, 0.07);
    .wish-cover{
      .img-wrap(100%, 392px);
      position: relative;
      .tag{
        position: absolute;
        left: 0;
        top: 0;
      }
    }
    .wish-share-content{
      height: 235px;
      background-color: #fff;
      padding: 50px 60px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      border-radius: 0 0 4px 4px;
      .left-size{
        margin-right: 70px;
        flex-grow: 1;
        .left-size-title{
          font-size: 26px;
          color: @black;
          line-height: 1.5;
          margin-bottom: 1px;
        }
        .left-size-desc{
          line-height: 1.5;
          font-size: 20px;
          color: @light-black;
          padding-bottom: 18px;
          border-bottom: 1px solid @border;
        }
        .wish-owner{
          line-height: 1.5;
          padding-top: 20px;
          font-size: 18px;
          color: @gray;
        }
      }
      .right-size{
        .img-wrap(130px,130px);
      }
    }

  }
  .btn-group{
    justify-content: center;
    .btn{
      height: 28px;
      width: 100px;
      flex-grow: 0;
    }
  }
}

.page-donate-index{
  padding-bottom: @bottom_space;
  main{
    width: 840px;
    margin: 0 auto;
  }
  .page-panel{
    padding-bottom: 30px;
    .donate-content{
      width: 665px;
    }
    .input-unit{
      .unit{
        right: -30px;
      }
    }
    .top-menu{
      justify-content: flex-start;
      font-size: 18px;
      color: @black;
      margin-bottom: 12px;
    }
    .donate-desc{
      font-size: 14px;
      color: @gray;
      margin-bottom: 15px;
    }
    .money-list{
      display: flex;
      align-items: center;
      font-size: 14px;
      color: @black;
      margin-left: -20px;
      margin-bottom: 20px;
      >li{
        margin-left:20px;
        transition: all .3s;
        cursor: pointer;
        height: 40px;
        .flex-center;
        border-radius: 4px;
        background-color: @input-bg-color;
        width: 120px;
        &.active{
          color: #fff;
          background-color: @red;
        }
      }
    }
    .checkbox-agree{
      width: auto;
      font-size: 14px;
      input[type=checkbox]{
        width: 17px;
        height: 17px;
      }
      .checkbox-agree__desc{
        margin-left: 10px;
      }
    }
    .secret-name{
      margin-top: -10px;
      label{
        margin-top: 0;
      }
    }
    .is-need-bill{
      label{
        margin-top: 0;
      }
      >label{
        display: inline-flex;
        align-items: center;
      }
      .form-field{
        display: flex;
        align-items: center;
        label{
          cursor: pointer;
          display: inline-flex;
          align-items: center;
          font-size: 14px;
          input[type=radio]{
            width: 24px;
            height: 24px;
          }
          &.need-bill{
            margin-right: 50px;
          }
          &.not-need-bill{
            margin-right: 15px;
          }
        }
        a{
          font-size: 14px;
          color: @red;
          border-bottom: 1px dashed @red;
        }
      }
    }
    .receipt-wrapper{
      margin-top: -10px;
    }
    .donate-msg{
      padding-bottom: 30px;
    }
    .think-desc,.donate-msg{
      textarea{
        height: 85px;
        padding: 20px;
        line-height: 1.5;
      }
    }
    .think-images{
      .ossuploader-add{
        margin-bottom: 3px;
      }
    }
    .donate-agree{
      label{
        width: auto;
        margin-top: 0;
        cursor: pointer;
      }
    }
    .btn-submit{
      width: 130px;
      padding: 0;
    }
  }
}

.page-donate-success{
  padding-bottom: @bottom_space;
  .donate-wrapper{
    position: relative;
    padding-top: 100px;
    min-height: 520px;
    padding-left: 100px;
    padding-right: 100px;
    padding-bottom: 70px;
    .bg(bg-donate-cert,png,center, 100% 100%);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 36px 0 rgba(21, 1, 1, 0.2);
    width: 720px;
    margin: 0 auto  50px;
    color: #fff;
    .donate-success-title{
      height: 51px;
      margin-bottom: 50px;
    }
    .logo{
      position: absolute;
      right: 50px;
      top: 50px;
      .img-wrap(auto, 60px);
    }
    .desc{
      line-height: 1.5;
      margin-bottom: 20px;
      &.donator-name{
        font-size: 20px;
      }
      &.thanking{
        font-size: 18px;
      }
    }
    .bottom{
      margin-top: 65px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .qr-code{
        background-color: #fff;
        .img-wrap(90px, 90px);
      }
      .donate-info{
        line-height: 1.5;
        font-size: 14px;
        .org{
          margin-bottom: 5px;
        }
      }
    }
  }
  .btn-group{
    justify-content: center;
    .btn{
      width: 100px;
      height: 28px;
      flex-grow: 0;
      & + .btn{
        margin-left: 70px;
      }
    }
  }
}

.ajax-page-loading{
  position: relative;
  @keyframes rotate {
    from {transform: rotate(0);}
    to {transform: rotate(360deg);}
  }

  &.ajax-page-loading__active{
    .ajax-page-loading-icon,.loading-mask{
      display: block;
    }
  }

  .ajax-page-loading-icon{
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -12px;
    margin-top: -12px;
    z-index: 11;
    animation: rotate 1s infinite linear;
    .icon-loading;
    display: none;
  }
  .loading-mask{
    background-color: #fff;
    opacity: .3;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
  }
}

.user-profile-page{
  .ossuploader-filedelete{
    display: none;
  }
}
